package com.gqzmy.springboot3.mapper;

import com.gqzmy.springboot3.entity.User;
import com.gqzmy.springboot3.vo.UserQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 周小哥  gqzmy@163.com 2022/12/1 10:51
 */

@Mapper
public interface UserMapper {

    User getById(@Param("id") String id);

    User getByUserAccount(@Param("userAccount") String userAccount);

    int insertUser(User user);

    int updateUser(User user);

    List<User> getUserList(UserQuery userQuery);
}
